/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hudsontest;

/**
 *
 * @author jfernan
 */
public class Calc {

     private int a;
    private int b;
    private int res;


     public int add( int a , int b )
     {
         this.setRes(a + b);
         return this.getRes();

     }

     public int subtract( int a , int b )
     {
         this.setRes(a - b);
         return this.getRes();
     }

    /**
     * @return the a
     */
    public int getA() {
        return a;
    }

    /**
     * @param a the a to set
     */
    public void setA(int a) {
        this.a = a;
    }

    /**
     * @return the b
     */
    public int getB() {
        return b;
    }

    /**
     * @param b the b to set
     */
    public void setB(int b) {
        this.b = b;
    }

    /**
     * @return the res
     */
    public int getRes() {
        return res;
    }

    /**
     * @param res the res to set
     */
    public void setRes(int res) {
        this.res = res;
    }


}
